package org.dromara.system.domain.bo;

import static org.dromara.common.core.constant.UserConstants.*;

import org.hibernate.validator.constraints.Length;

import jakarta.validation.constraints.NotBlank;
import lombok.Data;

/**
 * 用户忘记密码对象Bo
 *
 * @author jy.chen
 */
@Data
public class SysUserPasswordResetBo {

    /**
     * 用户名
     */
    @NotBlank(message = "{user.username.not.blank}")
    @Length(min = USERNAME_MIN_LENGTH, max = USERNAME_MAX_LENGTH, message = "{user.username.length.valid}")
    private String username;

    /**
     * 用户密码
     */
    @NotBlank(message = "{user.password.not.blank}")
    @Length(min = PASSWORD_MIN_LENGTH, max = PASSWORD_MAX_LENGTH, message = "{user.password.length.valid}")
    private String password;

    /**
     * 短信验证码
     */
    @NotBlank(message = "{sms.code.not.blank}")
    private String smsCode;

    /**
     * 租户id
     */
    @NotBlank(message = "{tenant.number.not.blank}")
    private String tenantId;
}
